function gotoWXLogin(appid,url,state) {
    //2 为微信登录
    //此处的ID是在文档的开发-基本配置里面
    if(appid == null || appid == ""){
        appid = "wxd2f55247a44233c7";
    }
    if(url==null || url==""){
        url = "http://localhost:8080/";
    }
    window.location.href =
      "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" +
      appid +
      "&redirect_uri=" +
      url +
      "&response_type=code&scope=snsapi_userinfo&state="+state+"&connect_redirect=1#wechat_redirect";
}